package com.stroage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
@author cyt
@create 2020-06-07 10:34
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TStorage {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "product_id")
    private int productId;

    @TableField(value = "total")
    private int total;

    @TableField(value = "used")
    private int used;

    @TableField(value = "residue")
    private int residue;

    public static final String COL_ID = "id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_TOTAL = "total";

    public static final String COL_USED = "used";

    public static final String COL_RESIDUE = "residue";
}
